package com.sunday.electric.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.sunday.common.qrcode.CaptureActivity;
import com.sunday.electric.R;
import com.sunday.electric.base.BaseFragment;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by wang on 2016/3/9.
 */
public class QRCodeFragment extends BaseFragment {

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        rootView = inflater.inflate(R.layout.fragment_tab_list,null);
        ButterKnife.bind(this,rootView);
        return rootView;
    }
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @OnClick(R.id.qr_code)
    void qrcode(){
        intent = new Intent(mContext,CaptureActivity.class);
        startActivity(intent);
    }
}
